<?php

use yii\db\Schema;
use yii\db\Migration;

class m161227_100420_add_custom_creative_template extends Migration
{
    public function up()
    {
        $sql = <<<FINE
insert into {{%creative_template}} 
values (3, '自定义模板', 1, '<img src="{!dsp_show_url}" style="display:none;" /> {!dsp_creative_code}', '2016-12-27 18:00:00');
FINE;
        return $this->execute($sql);
    }

    public function down()
    {
        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
